<div id="content">
  <div id="user-tb">
    <div id="title">
      <h1>注册新用户</h1>
      <p class="tips">如果您是多背一公斤的论坛用户，可直接使用您论坛的注册邮件地址和密码<%= link_to "登录", login_path %></p>
    </div>

  	<% form_for :user, :url => users_path do |f| -%>
  	<table border="0" cellspacing="5" cellpadding="5" align="center">
  	 <tr>
  	   <td width="80" class="right" valign="top">电子邮件</td>
  	   <td width="250"><%= f.text_field :email %>
  	      <%= error_explan @user, "email", "电子邮件格式不正确或已被占用" %></td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">用户名</td>
  	   <td width="250"><%= f.text_field :login %>
  	     <%= error_explan @user, "login", "用户名格式不正确" %>
  	     </td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">密码</td>
  	   <td width="250"><%= f.password_field :password %>
  	     <%= error_explan @user, "password", "密码格式不正确" %></td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">确认密码</td>
  	   <td width="250"><%= f.password_field :password_confirmation %>
  	     <%= error_explan @user, "password_confirmation", "确认密码不正确" %></td>
  	 </tr>
  	</table>
  	<p><%= submit_tag '注册' %></p>
  	<% end -%>
  </div>
</div>
